Provides hints and tips to avoid common script mistakes in specific areas , such as syntax , order of script interpretation , automatic type coercion , and so on 提供一些提示,以避免在某些具體方面(如語(yǔ)法、腳本解釋順序、自動(dòng)類型強(qiáng)制等等)出現(xiàn)常見腳本錯(cuò)誤。
Reading a parameter value can be marginally expensive ( because of type coercion ) . therefore , it makes sense to cache the parameter value , at least while the component is actively rendering itself 讀取一個(gè)參數(shù)值會(huì)耗費(fèi)不少資源(因?yàn)轭愋偷膹?qiáng)制轉(zhuǎn)換) 。因此,緩存參數(shù)值是有意義的,至少當(dāng)組件正在呈現(xiàn)自己時(shí)。